.class public final Lnbisdk/aj;
.super Ljava/lang/Object;


# instance fields
.field private aA:Lnbisdk/ao;

.field aB:Z

.field private aw:Landroid/graphics/Matrix;

.field ax:Landroid/graphics/PointF;

.field private ay:F

.field private az:Z

.field mMatrix:Landroid/graphics/Matrix;


# direct methods
.method public constructor <init>(Lnbisdk/ao;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/aj;->aB:Z

    new-instance v0, Landroid/graphics/Matrix;

    invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V

    iput-object v0, p0, Lnbisdk/aj;->mMatrix:Landroid/graphics/Matrix;

    new-instance v0, Landroid/graphics/Matrix;

    invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V

    iput-object v0, p0, Lnbisdk/aj;->aw:Landroid/graphics/Matrix;

    new-instance v0, Landroid/graphics/PointF;

    invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V

    iput-object v0, p0, Lnbisdk/aj;->ax:Landroid/graphics/PointF;

    iput-object p1, p0, Lnbisdk/aj;->aA:Lnbisdk/ao;

    return-void
.end method

.method private static c(Landroid/view/MotionEvent;)F
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Landroid/view/MotionEvent;->getX(I)F

    move-result v0

    invoke-virtual {p0, v3}, Landroid/view/MotionEvent;->getX(I)F

    move-result v1

    sub-float/2addr v0, v1

    invoke-virtual {p0, v2}, Landroid/view/MotionEvent;->getY(I)F

    move-result v1

    invoke-virtual {p0, v3}, Landroid/view/MotionEvent;->getY(I)F

    move-result v2

    sub-float/2addr v1, v2

    mul-float/2addr v0, v0

    mul-float/2addr v1, v1

    add-float/2addr v0, v1

    invoke-static {v0}, Landroid/util/FloatMath;->sqrt(F)F

    move-result v0

    return v0
.end method


# virtual methods
.method public final A()V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lnbisdk/aj;->mMatrix:Landroid/graphics/Matrix;

    invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V

    iget-object v0, p0, Lnbisdk/aj;->aw:Landroid/graphics/Matrix;

    invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V

    iput-boolean v1, p0, Lnbisdk/aj;->az:Z

    iput-boolean v1, p0, Lnbisdk/aj;->aB:Z

    return-void
.end method

.method public final a(Landroid/view/MotionEvent;)V
    .locals 3

    iget-object v0, p0, Lnbisdk/aj;->ax:Landroid/graphics/PointF;

    iget-object v1, p0, Lnbisdk/aj;->aA:Lnbisdk/ao;

    invoke-virtual {v1}, Lnbisdk/ao;->id()I

    move-result v1

    int-to-float v1, v1

    iget-object v2, p0, Lnbisdk/aj;->aA:Lnbisdk/ao;

    invoke-virtual {v2}, Lnbisdk/ao;->ie()I

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/graphics/PointF;->set(FF)V

    invoke-static {p1}, Lnbisdk/aj;->c(Landroid/view/MotionEvent;)F

    move-result v0

    iput v0, p0, Lnbisdk/aj;->ay:F

    iget-object v0, p0, Lnbisdk/aj;->aw:Landroid/graphics/Matrix;

    iget-object v1, p0, Lnbisdk/aj;->mMatrix:Landroid/graphics/Matrix;

    invoke-virtual {v0, v1}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V

    iget-boolean v0, p0, Lnbisdk/aj;->az:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lnbisdk/aj;->aA:Lnbisdk/ao;

    invoke-virtual {v0}, Lnbisdk/ao;->ak()Lnbisdk/ij;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lnbisdk/ij;->J(Z)Landroid/graphics/Bitmap;

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/aj;->az:Z

    :cond_0
    return-void
.end method

.method public final b(Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v4, 0x1

    const/4 v2, 0x0

    iget-boolean v0, p0, Lnbisdk/aj;->aB:Z

    if-ne v0, v4, :cond_0

    move v0, v2

    :goto_0
    return v0

    :cond_0
    invoke-static {p1}, Lnbisdk/aj;->c(Landroid/view/MotionEvent;)F

    move-result v0

    const/high16 v1, 0x4120

    cmpl-float v1, v0, v1

    if-lez v1, :cond_1

    iget-object v1, p0, Lnbisdk/aj;->mMatrix:Landroid/graphics/Matrix;

    iget-object v2, p0, Lnbisdk/aj;->aw:Landroid/graphics/Matrix;

    invoke-virtual {v1, v2}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V

    iget v1, p0, Lnbisdk/aj;->ay:F

    div-float/2addr v0, v1

    iget-object v1, p0, Lnbisdk/aj;->mMatrix:Landroid/graphics/Matrix;

    iget-object v2, p0, Lnbisdk/aj;->ax:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    iget-object v3, p0, Lnbisdk/aj;->ax:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->y:F

    invoke-virtual {v1, v0, v0, v2, v3}, Landroid/graphics/Matrix;->postScale(FFFF)Z

    move v0, v4

    goto :goto_0

    :cond_1
    move v0, v2

    goto :goto_0
.end method
